package com.youyi.yyviewsdklibrary.Dialog.core;

import android.arch.lifecycle.Lifecycle;
import android.graphics.PointF;
import android.graphics.Rect;
import android.view.View;
import com.youyi.yyviewsdklibrary.Dialog.animator.PopupAnimator;
import com.youyi.yyviewsdklibrary.Dialog.enums.PopupAnimation;
import com.youyi.yyviewsdklibrary.Dialog.enums.PopupPosition;
import com.youyi.yyviewsdklibrary.Dialog.interfaces.XPopupCallback;
import java.util.ArrayList;

public class PopupInfo {
    public int animationDuration = -1;
    public View atView = null;
    public Boolean autoDismiss = true;
    public boolean autoFocusEditText = true;
    public Boolean autoOpenSoftInput = false;
    public float borderRadius = 15.0f;
    public PopupAnimator customAnimator = null;
    public Boolean enableDrag = true;
    public boolean enableShowWhenAppBackground = false;
    public Boolean hasBlurBg = false;
    public Boolean hasNavigationBar = true;
    public Boolean hasShadowBg = true;
    public Boolean hasStatusBar = true;
    public Boolean hasStatusBarShadow = false;
    public Lifecycle hostLifecycle;
    public boolean isCenterHorizontal = false;
    public boolean isClickThrough = false;
    public boolean isDarkTheme = false;
    public boolean isDestroyOnDismiss = false;
    public Boolean isDismissOnBackPressed = true;
    public Boolean isDismissOnTouchOutside = true;
    public int isLightNavigationBar = 0;
    public int isLightStatusBar = 0;
    public Boolean isMoveUpToKeyboard = true;
    public boolean isRequestFocus = true;
    public boolean isThreeDrag = false;
    public boolean isTouchThrough = false;
    public boolean isViewMode = false;
    public boolean keepScreenOn = false;
    public int maxHeight;
    public int maxWidth;
    public int navigationBarColor = 0;
    public ArrayList<Rect> notDismissWhenTouchInArea;
    public int offsetX;
    public int offsetY;
    public PopupAnimation popupAnimation = null;
    public int popupHeight;
    public PopupPosition popupPosition = null;
    public int popupWidth;
    public boolean positionByWindowCenter = false;
    public int shadowBgColor = 0;
    public int statusBarBgColor = 0;
    public PointF touchPoint = null;
    public XPopupCallback xPopupCallback;

    public Rect getAtViewRect() {
        int[] iArr = new int[2];
        this.atView.getLocationInWindow(iArr);
        return new Rect(iArr[0], iArr[1], iArr[0] + this.atView.getMeasuredWidth(), iArr[1] + this.atView.getMeasuredHeight());
    }
}
